package com.kongjs.application.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;

@Getter
@Setter
@ToString
@TableName("resources")
@Entity
public class Resources extends Base implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @Id
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    @TableField("resource_name")
    private String resourceName;
    @TableField("pattern")
    private String pattern;
    @TableField("http_method")
    private String httpMethod;
    @TableField("case_sensitive")
    private Boolean caseSensitive;
    /*
     * antPath
     * regex
     * */
    @TableField("matcher_type")
    private String matcherType;
}
